package org.example.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.example.domain.po.ErpDepot;
import org.example.domain.po.ErpMaterialAttribute;
import org.example.domain.po.ErpUnit;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 3400
* @description 针对表【erp_unit(多单位表)】的数据库操作Service
* @createDate 2024-10-30 09:40:17
*/
public interface ErpUnitService extends IService<ErpUnit> {
    //分页查询
    Page<ErpUnit> findByPage(Page<ErpUnit> page , @Param("attributeName") String attributeName,
                             @Param("tenantId") Long tenantId);
    List<ErpUnit> selectByExample(Long tenantId);
    List<ErpUnit> select(Integer id, Long tenantId);

    boolean modifyTheState(List<Integer> ids, Integer enabled);
}
